<!DOCTYPE html>
<html>
<head>
    

    

    



    <meta charset="utf-8">
    
    
    
    <title>2.1.5 Consul常用命令 | weiyonghua&#39;s Blog | YOUR_SUBTITLE</title>
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    
    <meta name="theme-color" content="#3F51B5">
    
    
    <meta name="keywords" content="springclould">
    <meta name="description" content="2.1.5 Consul常用命令Consul常用命令   命令 解释 示例     agent 运行一个consul agent consul agent -dev   join 将agent加入到consul集群 consul join IP   members 列出consul cluster集群中的members consul members   leave 将节点移除所在集群 consul">
<meta name="keywords" content="springclould">
<meta property="og:type" content="article">
<meta property="og:title" content="2.1.5 Consul常用命令">
<meta property="og:url" content="weiyonghua's Blog/2017/07/03/2-1-5-Consul常用命令/index.html">
<meta property="og:site_name" content="weiyonghua&#39;s Blog">
<meta property="og:description" content="2.1.5 Consul常用命令Consul常用命令   命令 解释 示例     agent 运行一个consul agent consul agent -dev   join 将agent加入到consul集群 consul join IP   members 列出consul cluster集群中的members consul members   leave 将节点移除所在集群 consul">
<meta property="og:updated_time" content="2017-07-03T08:32:29.063Z">
<meta name="twitter:card" content="summary">
<meta name="twitter:title" content="2.1.5 Consul常用命令">
<meta name="twitter:description" content="2.1.5 Consul常用命令Consul常用命令   命令 解释 示例     agent 运行一个consul agent consul agent -dev   join 将agent加入到consul集群 consul join IP   members 列出consul cluster集群中的members consul members   leave 将节点移除所在集群 consul">
    
        <link rel="alternative" href="/atom.xml" title="weiyonghua&#39;s Blog" type="application/atom+xml">
    
    <link rel="shortcut icon" href="/favicon.ico">
    <link rel="stylesheet" href="/css/style.css?v=1.4.9">
    <script>window.lazyScripts=[]</script>
</head>

<body>
    <div id="loading" class="active"></div>

    <aside id="menu" class="hide" >
  <div class="inner flex-row-vertical">
    <a href="javascript:;" class="header-icon waves-effect waves-circle waves-light" id="menu-off">
        <i class="icon icon-lg icon-close"></i>
    </a>
    <div class="brand-wrap">
      <div class="brand">
        <a href="/" class="avatar waves-effect waves-circle waves-light">
          <img src="/img/avatar.jpg">
        </a>
        <hgroup class="introduce">
          <h5 class="nickname">weiyonghua</h5>
          <a href="mailto:weiyonghua16@gmail.com" title="weiyonghua16@gmail.com" class="mail">weiyonghua16@gmail.com</a>
        </hgroup>
      </div>
    </div>
    <div class="scroll-wrap flex-col">
      <ul class="nav">
        
            <li class="waves-block waves-effect">
              <a href="/"  >
                <i class="icon icon-lg icon-home"></i>
                主页
              </a>
            </li>
        
            <li class="waves-block waves-effect">
              <a href="/archives"  >
                <i class="icon icon-lg icon-archives"></i>
                Archives
              </a>
            </li>
        
            <li class="waves-block waves-effect">
              <a href="/tags"  >
                <i class="icon icon-lg icon-tags"></i>
                Tags
              </a>
            </li>
        
            <li class="waves-block waves-effect">
              <a href="/categories"  >
                <i class="icon icon-lg icon-th-list"></i>
                Categories
              </a>
            </li>
        
            <li class="waves-block waves-effect">
              <a href="https://github.com/1135831485" target="_blank" >
                <i class="icon icon-lg icon-github"></i>
                Github
              </a>
            </li>
        
            <li class="waves-block waves-effect">
              <a href="http://t.qq.com/fy1135831485" target="_blank" >
                <i class="icon icon-lg icon-weibo"></i>
                Weibo
              </a>
            </li>
        
      </ul>
    </div>
  </div>
</aside>

    <main id="main">
        <header class="top-header" id="header">
    <div class="flex-row">
        <a href="javascript:;" class="header-icon waves-effect waves-circle waves-light on" id="menu-toggle">
          <i class="icon icon-lg icon-navicon"></i>
        </a>
        <div class="flex-col header-title ellipsis">2.1.5 Consul常用命令</div>
        
        <div class="search-wrap" id="search-wrap">
            <a href="javascript:;" class="header-icon waves-effect waves-circle waves-light" id="back">
                <i class="icon icon-lg icon-chevron-left"></i>
            </a>
            <input type="text" id="key" class="search-input" autocomplete="off" placeholder="输入感兴趣的关键字">
            <a href="javascript:;" class="header-icon waves-effect waves-circle waves-light" id="search">
                <i class="icon icon-lg icon-search"></i>
            </a>
        </div>
        
        
        <a href="javascript:;" class="header-icon waves-effect waves-circle waves-light" id="menuShare">
            <i class="icon icon-lg icon-share-alt"></i>
        </a>
        
    </div>
</header>
<header class="content-header post-header">

    <div class="container fade-scale">
        <h1 class="title">2.1.5 Consul常用命令</h1>
        <h5 class="subtitle">
            
                <time datetime="2017-07-03T08:20:00.000Z" itemprop="datePublished" class="page-time">
  2017-07-03
</time>


	<ul class="article-category-list"><li class="article-category-list-item"><a class="article-category-list-link" href="/categories/springclould专栏/">springclould专栏</a></li></ul>

            
        </h5>
    </div>

    

</header>


<div class="container body-wrap">
    
    <aside class="post-widget">
        <nav class="post-toc-wrap" id="post-toc">
            <h4>TOC</h4>
            <ol class="post-toc"><li class="post-toc-item post-toc-level-1"><a class="post-toc-link" href="#2-1-5-Consul常用命令"><span class="post-toc-number">1.</span> <span class="post-toc-text">2.1.5 Consul常用命令</span></a><ol class="post-toc-child"><li class="post-toc-item post-toc-level-2"><a class="post-toc-link" href="#Consul常用命令"><span class="post-toc-number">1.1.</span> <span class="post-toc-text">Consul常用命令</span></a></li><li class="post-toc-item post-toc-level-2"><a class="post-toc-link" href="#consul-agent-命令详解"><span class="post-toc-number">1.2.</span> <span class="post-toc-text">consul agent 命令详解</span></a></li><li class="post-toc-item post-toc-level-2"><a class="post-toc-link" href="#参考文档"><span class="post-toc-number">1.3.</span> <span class="post-toc-text">参考文档</span></a></li></ol></li></ol>
        </nav>
    </aside>
    
<article id="post-2-1-5-Consul常用命令"
  class="post-article article-type-post fade" itemprop="blogPost">

    <div class="post-card">
        <h1 class="post-card-title">2.1.5 Consul常用命令</h1>
        <div class="post-meta">
            <time class="post-time" title="2017年07月03日 16:20" datetime="2017-07-03T08:20:00.000Z"  itemprop="datePublished">2017-07-03</time>

            
	<ul class="article-category-list"><li class="article-category-list-item"><a class="article-category-list-link" href="/categories/springclould专栏/">springclould专栏</a></li></ul>



            
<span id="busuanzi_container_page_pv" title="文章总阅读量" style='display:none'>
    <i class="icon icon-eye icon-pr"></i><span id="busuanzi_value_page_pv"></span>
</span>


            

        </div>
        <div class="post-content" id="post-content" itemprop="postContent">
            <h1 id="2-1-5-Consul常用命令"><a href="#2-1-5-Consul常用命令" class="headerlink" title="2.1.5 Consul常用命令"></a>2.1.5 Consul常用命令</h1><h2 id="Consul常用命令"><a href="#Consul常用命令" class="headerlink" title="Consul常用命令"></a>Consul常用命令</h2><table>
<thead>
<tr>
<th>命令</th>
<th>解释</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>agent</td>
<td>运行一个consul agent</td>
<td>consul agent -dev</td>
</tr>
<tr>
<td>join</td>
<td>将agent加入到consul集群</td>
<td>consul join IP</td>
</tr>
<tr>
<td>members</td>
<td>列出consul cluster集群中的members</td>
<td>consul members</td>
</tr>
<tr>
<td>leave</td>
<td>将节点移除所在集群</td>
<td>consul leave</td>
</tr>
</tbody>
</table>
<h2 id="consul-agent-命令详解"><a href="#consul-agent-命令详解" class="headerlink" title="consul agent 命令详解"></a><code>consul agent</code> 命令详解</h2><p>输入<code>consul agent --help</code> ，可以看到<code>consul agent</code> 的选项，如下：</p>
<figure class="highlight shell"><table><tr><td class="gutter"><pre><div class="line">1</div><div class="line">2</div><div class="line">3</div><div class="line">4</div><div class="line">5</div><div class="line">6</div><div class="line">7</div><div class="line">8</div><div class="line">9</div><div class="line">10</div><div class="line">11</div><div class="line">12</div><div class="line">13</div><div class="line">14</div><div class="line">15</div><div class="line">16</div><div class="line">17</div><div class="line">18</div><div class="line">19</div><div class="line">20</div><div class="line">21</div><div class="line">22</div><div class="line">23</div><div class="line">24</div><div class="line">25</div><div class="line">26</div><div class="line">27</div><div class="line">28</div><div class="line">29</div><div class="line">30</div><div class="line">31</div><div class="line">32</div><div class="line">33</div><div class="line">34</div><div class="line">35</div><div class="line">36</div><div class="line">37</div><div class="line">38</div><div class="line">39</div><div class="line">40</div><div class="line">41</div><div class="line">42</div><div class="line">43</div><div class="line">44</div><div class="line">45</div><div class="line">46</div><div class="line">47</div><div class="line">48</div><div class="line">49</div></pre></td><td class="code"><pre><div class="line"></div><div class="line">-advertise=addr          Sets the advertise address to use</div><div class="line">-advertise-wan=addr      Sets address to advertise on wan instead of advertise addr</div><div class="line">-atlas=org/name          Sets the Atlas infrastructure name, enables SCADA.</div><div class="line">-atlas-join              Enables auto-joining the Atlas cluster</div><div class="line">-atlas-token=token       Provides the Atlas API token</div><div class="line">-atlas-endpoint=1.2.3.4  The address of the endpoint for Atlas integration.</div><div class="line">-bootstrap               Sets server to bootstrap mode</div><div class="line">-bind=0.0.0.0            Sets the bind address for cluster communication</div><div class="line">-http-port=8500          Sets the HTTP API port to listen on</div><div class="line">-bootstrap-expect=0      Sets server to expect bootstrap mode.</div><div class="line">-client=127.0.0.1        Sets the address to bind for client access.</div><div class="line">                         This includes RPC, DNS, HTTP and HTTPS (if configured)</div><div class="line">-config-file=foo         Path to a JSON file to read configuration from.</div><div class="line">                         This can be specified multiple times.</div><div class="line">-config-dir=foo          Path to a directory to read configuration files</div><div class="line">                         from. This will read every file ending in ".json"</div><div class="line">                         as configuration in this directory in alphabetical</div><div class="line">                         order. This can be specified multiple times.</div><div class="line">-data-dir=path           Path to a data directory to store agent state</div><div class="line">-dev                     Starts the agent in development mode.</div><div class="line">-recursor=1.2.3.4        Address of an upstream DNS server.</div><div class="line">                         Can be specified multiple times.</div><div class="line">-dc=east-aws             Datacenter of the agent (deprecated: use 'datacenter' instead).</div><div class="line">-datacenter=east-aws     Datacenter of the agent.</div><div class="line">-encrypt=key             Provides the gossip encryption key</div><div class="line">-join=1.2.3.4            Address of an agent to join at start time.</div><div class="line">                         Can be specified multiple times.</div><div class="line">-join-wan=1.2.3.4        Address of an agent to join -wan at start time.</div><div class="line">                         Can be specified multiple times.</div><div class="line">-retry-join=1.2.3.4      Address of an agent to join at start time with</div><div class="line">                         retries enabled. Can be specified multiple times.</div><div class="line">-retry-interval=30s      Time to wait between join attempts.</div><div class="line">-retry-max=0             Maximum number of join attempts. Defaults to 0, which</div><div class="line">                         will retry indefinitely.</div><div class="line">-retry-join-wan=1.2.3.4  Address of an agent to join -wan at start time with</div><div class="line">                         retries enabled. Can be specified multiple times.</div><div class="line">-retry-interval-wan=30s  Time to wait between join -wan attempts.</div><div class="line">-retry-max-wan=0         Maximum number of join -wan attempts. Defaults to 0, which</div><div class="line">                         will retry indefinitely.</div><div class="line">-log-level=info          Log level of the agent.</div><div class="line">-node=hostname           Name of this node. Must be unique in the cluster</div><div class="line">-protocol=N              Sets the protocol version. Defaults to latest.</div><div class="line">-rejoin                  Ignores a previous leave and attempts to rejoin the cluster.</div><div class="line">-server                  Switches agent to server mode.</div><div class="line">-syslog                  Enables logging to syslog</div><div class="line">-ui                      Enables the built-in static web UI server</div><div class="line">-ui-dir=path             Path to directory containing the Web UI resources</div><div class="line">-pid-file=path           Path to file to store agent PID</div></pre></td></tr></table></figure>
<p><code>consul agent</code> 命令的常用选项，如下：</p>
<ul>
<li>-data-dir<ul>
<li>作用：指定agent储存状态的数据目录</li>
<li>这是所有agent都必须的</li>
<li>对于server尤其重要，因为他们必须持久化集群的状态</li>
</ul>
</li>
<li>-config-dir<ul>
<li>作用：指定service的配置文件和检查定义所在的位置</li>
<li>通常会指定为”某一个路径/consul.d”（通常情况下，.d表示一系列配置文件存放的目录）</li>
</ul>
</li>
<li>-config-file<ul>
<li>作用：指定一个要装载的配置文件</li>
<li>该选项可以配置多次，进而配置多个配置文件（后边的会合并前边的，相同的值覆盖）</li>
</ul>
</li>
<li>-dev<ul>
<li>作用：创建一个开发环境下的server节点</li>
<li>该参数配置下，不会有任何持久化操作，即不会有任何数据写入到磁盘</li>
<li>这种模式不能用于生产环境（因为第二条）</li>
</ul>
</li>
<li>-bootstrap-expect<ul>
<li>作用：该命令通知consul server我们现在准备加入的server节点个数，该参数是为了延迟日志复制的启动直到我们指定数量的server节点成功的加入后启动。</li>
</ul>
</li>
<li>-node<ul>
<li>作用：指定节点在集群中的名称</li>
<li>该名称在集群中必须是唯一的（默认采用机器的host）</li>
<li>推荐：直接采用机器的IP</li>
</ul>
</li>
<li>-bind<ul>
<li>作用：指明节点的IP地址</li>
<li>有时候不指定绑定IP，会报<code>Failed to get advertise address: Multiple private IPs found. Please configure one.</code> 的异常</li>
</ul>
</li>
<li>-server<ul>
<li>作用：指定节点为server</li>
<li>每个数据中心（DC）的server数推荐至少为1，至多为5</li>
<li>所有的server都采用raft一致性算法来确保事务的一致性和线性化，事务修改了集群的状态，且集群的状态保存在每一台server上保证可用性</li>
<li>server也是与其他DC交互的门面（gateway）</li>
</ul>
</li>
<li>-client<ul>
<li>作用：指定节点为client，指定客户端接口的绑定地址，包括：HTTP、DNS、RPC</li>
<li>默认是127.0.0.1，只允许回环接口访问</li>
<li>若不指定为-server，其实就是-client</li>
</ul>
</li>
<li>-join<ul>
<li>作用：将节点加入到集群</li>
</ul>
</li>
<li>-datacenter（老版本叫-dc，-dc已经失效）<ul>
<li>作用：指定机器加入到哪一个数据中心中</li>
</ul>
</li>
</ul>
<p>如上，大家应该可以猜到，</p>
<p>使用<code>-client</code> 参数可指定允许客户端使用什么ip去访问，例如<code>-client 192.168.11.143</code> 表示可以使用<code>http://192.168.11.143:8500/ui</code> 去访问。</p>
<p>我们尝试一下：</p>
<figure class="highlight shell"><table><tr><td class="gutter"><pre><div class="line">1</div></pre></td><td class="code"><pre><div class="line">consul agent -dev -client 192.168.11.143</div></pre></td></tr></table></figure>
<p>发现果然可以使用<code>http://192.168.11.143:8500/ui</code> 访问了。</p>
<h2 id="参考文档"><a href="#参考文档" class="headerlink" title="参考文档"></a>参考文档</h2><blockquote>
<p>官方文档：<a href="https://www.consul.io/docs/agent/options.html" target="_blank" rel="external">https://www.consul.io/docs/agent/options.html</a></p>
<p>Consul系列博客：<a href="http://www.cnblogs.com/java-zhao/p/5378876.html" target="_blank" rel="external">http://www.cnblogs.com/java-zhao/p/5378876.html</a></p>
</blockquote>

        </div>

        <blockquote class="post-copyright">
    <div class="content">
        
<span class="post-time">
    最后更新时间：<time datetime="2017-07-03T08:32:29.063Z" itemprop="dateUpdated">2017年7月3日 16:32</time>
</span><br>


        这里写留言或版权声明：<a href="/2017/07/03/2-1-5-Consul常用命令/" target="_blank" rel="external">weiyonghua&#39;s Blog/2017/07/03/2-1-5-Consul常用命令/</a>
    </div>
    <footer>
        <a href="weiyonghua's Blog">
            <img src="/img/avatar.jpg" alt="weiyonghua">
            weiyonghua
        </a>
    </footer>
</blockquote>

        
<div class="page-reward">
    <a id="rewardBtn" href="javascript:;" class="page-reward-btn waves-effect waves-circle waves-light">赏</a>
</div>



        <div class="post-footer">
            
	<ul class="article-tag-list"><li class="article-tag-list-item"><a class="article-tag-list-link" href="/tags/springclould/">springclould</a></li></ul>


            
<div class="page-share-wrap">
    

<div class="page-share" id="pageShare">
    <ul class="reset share-icons">
      <li>
        <a class="weibo share-sns" target="_blank" href="http://service.weibo.com/share/share.php?url=weiyonghua's Blog/2017/07/03/2-1-5-Consul常用命令/&title=《2.1.5 Consul常用命令》 — weiyonghua's Blog&pic=weiyonghua's Blog/img/avatar.jpg" data-title="微博">
          <i class="icon icon-weibo"></i>
        </a>
      </li>
      <li>
        <a class="weixin share-sns wxFab" href="javascript:;" data-title="微信">
          <i class="icon icon-weixin"></i>
        </a>
      </li>
      <li>
        <a class="qq share-sns" target="_blank" href="http://connect.qq.com/widget/shareqq/index.html?url=weiyonghua's Blog/2017/07/03/2-1-5-Consul常用命令/&title=《2.1.5 Consul常用命令》 — weiyonghua's Blog&source=YOUR_DESC" data-title=" QQ">
          <i class="icon icon-qq"></i>
        </a>
      </li>
      <li>
        <a class="facebook share-sns" target="_blank" href="https://www.facebook.com/sharer/sharer.php?u=weiyonghua's Blog/2017/07/03/2-1-5-Consul常用命令/" data-title=" Facebook">
          <i class="icon icon-facebook"></i>
        </a>
      </li>
      <li>
        <a class="twitter share-sns" target="_blank" href="https://twitter.com/intent/tweet?text=《2.1.5 Consul常用命令》 — weiyonghua's Blog&url=weiyonghua's Blog/2017/07/03/2-1-5-Consul常用命令/&via=weiyonghua's Blog" data-title=" Twitter">
          <i class="icon icon-twitter"></i>
        </a>
      </li>
      <li>
        <a class="google share-sns" target="_blank" href="https://plus.google.com/share?url=weiyonghua's Blog/2017/07/03/2-1-5-Consul常用命令/" data-title=" Google+">
          <i class="icon icon-google-plus"></i>
        </a>
      </li>
    </ul>
 </div>



    <a href="javascript:;" id="shareFab" class="page-share-fab waves-effect waves-circle">
        <i class="icon icon-share-alt icon-lg"></i>
    </a>
</div>



        </div>
    </div>

    
<nav class="post-nav flex-row flex-justify-between">
  
    <div class="waves-block waves-effect prev">
      <a href="/2017/07/03/2-1-6-Consul高可用/" id="post-prev" class="post-nav-link">
        <div class="tips"><i class="icon icon-angle-left icon-lg icon-pr"></i> Prev</div>
        <h4 class="title">2.1.6 Consul高可用</h4>
      </a>
    </div>
  

  
    <div class="waves-block waves-effect next">
      <a href="/2017/07/03/2-1-4-Consul安装与使用/" id="post-next" class="post-nav-link">
        <div class="tips">Next <i class="icon icon-angle-right icon-lg icon-pl"></i></div>
        <h4 class="title">2.1.4 Consul安装与使用</h4>
      </a>
    </div>
  
</nav>



    

<div class="comments" id="comments">
    <div class="ds-thread" data-thread-key="2-1-5-Consul常用命令" data-title="2.1.5 Consul常用命令" data-url="weiyonghua's Blog/2017/07/03/2-1-5-Consul常用命令/"></div>
</div>
<script>
lazyScripts.push('//cdn.bootcss.com/marked/0.3.6/marked.min.js');

var duoshuoQuery = {short_name:'ysblog', theme: 'none'};
lazyScripts.push('/js/embed.min.js?v=1.4.9');


</script>







</article>

<div id="reward" class="page-modal reward-lay">
    <a class="close" href="javascript:;"><i class="icon icon-close"></i></a>
    <h3 class="reward-title">
        <i class="icon icon-quote-left"></i>
        谢谢大爷~
        <i class="icon icon-quote-right"></i>
    </h3>
    <ul class="reward-items">
        
        <li>
            <img src="/img/wechat.jpg" title="微信打赏二维码" alt="微信打赏二维码">
            <p>微信</p>
        </li>
        

        
        <li>
            <img src="/img/alipay.jpg" title="支付宝打赏二维码" alt="支付宝打赏二维码">
            <p>支付宝</p>
        </li>
        
    </ul>
</div>



</div>

        <footer class="footer">
    <div class="top">
        
<p>
    <span id="busuanzi_container_site_uv" style='display:none'>
        站点总访客数：<span id="busuanzi_value_site_uv"></span>
    </span>
    <span id="busuanzi_container_site_pv" style='display:none'>
        站点总访问量：<span id="busuanzi_value_site_pv"></span>
    </span>
</p>


        <p>
            <span><a href="/atom.xml" target="_blank" class="rss" title="rss"><i class="icon icon-lg icon-rss"></i></a></span>
            <span>博客内容遵循 <a href="http://creativecommons.org/licenses/by-nc-sa/4.0/" target="_blank">知识共享 署名 - 非商业性 - 相同方式共享 4.0协议</a></span>
        </p>
    </div>
    <div class="bottom">
        <p>
            <span>Power by <a href="http://hexo.io/" target="_blank">Hexo</a> Theme <a href="https://github.com/yscoder/hexo-theme-indigo" target="_blank">indigo</a></span>
            <span>weiyonghua's Blog &copy; 2015 - 2017</span>
        </p>
    </div>
</footer>

    </main>
    <div class="mask" id="mask"></div>
<a href="javascript:;" id="gotop" class="waves-effect waves-circle waves-light"><span class="icon icon-lg icon-chevron-up"></span></a>



<div class="global-share" id="globalShare">
    <ul class="reset share-icons">
      <li>
        <a class="weibo share-sns" target="_blank" href="http://service.weibo.com/share/share.php?url=weiyonghua's Blog/2017/07/03/2-1-5-Consul常用命令/&title=《2.1.5 Consul常用命令》 — weiyonghua's Blog&pic=weiyonghua's Blog/img/avatar.jpg" data-title="微博">
          <i class="icon icon-weibo"></i>
        </a>
      </li>
      <li>
        <a class="weixin share-sns wxFab" href="javascript:;" data-title="微信">
          <i class="icon icon-weixin"></i>
        </a>
      </li>
      <li>
        <a class="qq share-sns" target="_blank" href="http://connect.qq.com/widget/shareqq/index.html?url=weiyonghua's Blog/2017/07/03/2-1-5-Consul常用命令/&title=《2.1.5 Consul常用命令》 — weiyonghua's Blog&source=YOUR_DESC" data-title=" QQ">
          <i class="icon icon-qq"></i>
        </a>
      </li>
      <li>
        <a class="facebook share-sns" target="_blank" href="https://www.facebook.com/sharer/sharer.php?u=weiyonghua's Blog/2017/07/03/2-1-5-Consul常用命令/" data-title=" Facebook">
          <i class="icon icon-facebook"></i>
        </a>
      </li>
      <li>
        <a class="twitter share-sns" target="_blank" href="https://twitter.com/intent/tweet?text=《2.1.5 Consul常用命令》 — weiyonghua's Blog&url=weiyonghua's Blog/2017/07/03/2-1-5-Consul常用命令/&via=weiyonghua's Blog" data-title=" Twitter">
          <i class="icon icon-twitter"></i>
        </a>
      </li>
      <li>
        <a class="google share-sns" target="_blank" href="https://plus.google.com/share?url=weiyonghua's Blog/2017/07/03/2-1-5-Consul常用命令/" data-title=" Google+">
          <i class="icon icon-google-plus"></i>
        </a>
      </li>
    </ul>
 </div>


<div class="page-modal wx-share" id="wxShare">
    <a class="close" href="javascript:;"><i class="icon icon-close"></i></a>
    <p>扫一扫，分享到微信</p>
    <img src="" alt="微信分享二维码">
</div>




    <script src="//cdn.bootcss.com/node-waves/0.7.4/waves.min.js"></script>
<script>
var BLOG = { ROOT: '/', SHARE: true, REWARD: true };



</script>

<script src="/js/main.min.js?v=1.4.9"></script>


<div class="search-panel" id="search-panel">
    <ul class="search-result" id="search-result"></ul>
</div>
<template id="search-tpl">
<li class="item">
    <a href="{path}" class="waves-block waves-effect">
        <div class="title ellipsis" title="{title}">{title}</div>
        <div class="flex-row flex-middle">
            <div class="tags ellipsis">
                {tags}
            </div>
            <time class="flex-col time">{date}</time>
        </div>
    </a>
</li>
</template>

<script src="/js/search.min.js?v=1.4.9" async></script>






<script async src="//dn-lbstatics.qbox.me/busuanzi/2.3/busuanzi.pure.mini.js"></script>


</body>
</html>
